import { post } from "../../utils/request";
interface Response {
    /**
     * @description token
     */
    token: string,
}
/**
 * 用户登陆
 * 
 * @param mobile_phone 手机号
 */
export default async function codelogin(mobile_phone: string) {
    const response = await post<Response>('/api/user/code_login', { mobile_phone });
    return response;
}